# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=py3-tidyexc
pkgver=0.9.0
pkgrel=3
pkgdesc="An exception class inspired by the tidyverse style guide."
url="https://pypi.org/project/tidyexc/"
arch="noarch"
license="MIT"
makedepends="
	py3-build
	py3-flit
	py3-installer
	py3-wheel
	"
checkdepends="
	py3-pytest
	"
source="https://files.pythonhosted.org/packages/source/t/tidyexc/tidyexc-$pkgver.tar.gz"
builddir="$srcdir/tidyexc-$pkgver"

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	PY_IGNORE_IMPORTMISMATCH=1 PYTHONPATH="$PWD" pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/tidyexc-$pkgver-py2.py3-none-any.whl
}

sha512sums="
6b4787ef7dd36a2de0aea719f899a9376505334998f0a245d1dd6196ffc276bf92cf081ce9298c47ed9f67cb65fe1f46228c85db90cfe9ceb59e6e6a696c7397  tidyexc-0.9.0.tar.gz
"
